import cv2 as cv
import numpy as np

import random

img = cv.imread('../resources/miku.jpg')

while True:
    imgcp = img.copy()
    point1 = (random.randint(0, 500), random.randint(0, 500))
    point2 = (random.randint(0, 500), random.randint(0, 500))
    color = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255))
    cv.line(imgcp, point1, point2, color, 20)

    cv.imshow('img', imgcp)
    if cv.waitKey(0) & 0xFF == ord('q'):
        break

cv.destroyAllWindows()
